/************************************************************************/
/*    Author: Scott Bevin                                               */
/************************************************************************/

#pragma once

#include "../Property.h"
#include "../PropertyMaker.h"

#include "../../XUtilities/Utilities.h"

namespace XF
{
	class DoubleProperty : public Prop<double>
	{
	public:
		DoubleProperty(std::string typeID, const std::string &name) : Prop<double>(typeID, name){}

		std::string ToString()
		{
			return Utilities::ToString(mData.mValue);
		}

		void SetFromString(std::string value)
		{
			Utilities::FromString<double>(mData.mValue, value);
		}

	private:
		static PropertyMaker<DoubleProperty, double> mRegisterThis;
	};

}